<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1507840">
<div style="position:relative; overflow:hidden; width:100px; height:100px;">
  <div style="position:absolute; width:100px; height:100px; background:green;">
    <div id="trouble"></div>
  </div>
</div>
<script>
  var mediaQuery = window.matchMedia("print");
  mediaQuery.addListener(function() {
    trouble.style.width = "100px";
  });
</script>
